local skel = fk.CreateSkill {
  name = "lb_zero__zhenliao",
}

Fk:loadTranslationTable {
  ["lb_zero__zhenliao"] = "震獠",
  [":lb_zero__zhenliao"] = "当你响应伤害牌后，你可以对此牌的使用者造成1点伤害。",

  ["#lb_zero__zhenliao"] = "震獠：你可以对 %arg 的使用者 %src 造成1点伤害",

  ["$lb_zero__zhenliao1"] = "禁止再向前一步！",
  ["$lb_zero__zhenliao2"] = "我，决不后退半步。",
  ["$lb_zero__zhenliao3"] = "战斗不只是荣耀，亦是责任！",
}

local zhenliao_spec = {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) 
    and data.responseToEvent and data.responseToEvent.from and not data.responseToEvent.from.dead
    and data.responseToEvent.card.is_damage_card
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(player, { skill_name = skel.name, 
    prompt = "#lb_zero__zhenliao:" .. data.responseToEvent.from.id .. "::" .. data.responseToEvent.card:toLogString(), })
  end,
  on_use = function(self, event, target, player, data)
    player.room:damage{
      from = player,
      to = data.responseToEvent.from,
      damage = 1,
      damageType = fk.NormalDamage,
      skillName = skel.name,
    }
  end,
}

skel:addEffect(fk.CardUseFinished, zhenliao_spec)
skel:addEffect(fk.CardRespondFinished, zhenliao_spec)


return skel